package com.springboot.demo.service.impl;


import com.cx.item.common.service.impl.BaseServiceImpl;
import com.springboot.demo.mapper.AreaMapper;
import com.springboot.demo.model.example.AreaExample;
import com.springboot.demo.model.model.Area;
import com.springboot.demo.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by hwm on 2018/6/22.
 */
@Service
public class AreaServiceImpl extends BaseServiceImpl<Area, AreaExample, AreaMapper> implements AreaService {

    @Autowired
    private AreaMapper areaMapper;

    @Override
    public Map<String, String> getAddressNameByCode(String addressCode) {
        return areaMapper.getAddressNameByCode(addressCode);
    }
}
